﻿@using Models.WebSite_HaiSheng
@using Utilities
@model List<Image>
<script type="text/javascript">
    $(document).ready(function () {
        var rul = $('#valuekeeper').val();
        if (rul)
         viewImgs("imgviewdiv", rul, 'imgviewdivtoggler', 500, 350);
    });
</script>
@{
if(Model.Count>0)
{
    <input type="hidden" id="valuekeeper" value=@Utl.GetImageUrls(Model) />
    <div id="sth"></div>
    <div id="imgviewdiv">
    </div>
    <div id="imgviewdivtoggler" style="width: 500px; text-align: center; margin-top: 10px">
        <a href="#" class="prev">
            <img src="/Images/left.png" style="border-width: 0" /></a> <span class="status" style="margin: 0 50px;
                font-weight: bold"></span><a href="#" class="next">
                    <img src="/Images/right.png" style="border-width: 0" /></a>
    </div>
    }
}
